Understanding HTML Entities
HTML entities are special codes used to represent characters that have a reserved meaning in HTML or characters that are not easily typed from a keyboard. They ensure that these characters display correctly in a web page.
They start with an ampersand (&) and end with a semicolon (;).
Some represent reserved HTML characters, like <, >, &, which otherwise would be interpreted as HTML tags or syntax.
Others represent special symbols, accented letters, or Unicode characters.
< → < (less than)
> → > (greater than)
& → & (ampersand)
" → " (double quote)
' → ' (single quote)
→ non-breaking space
In short: HTML entities allow you to safely display reserved characters, special symbols, or accented letters in your web pages.